package zjut.raymond.witdemo.sensor;

public class MyEvent {
    float x;
    float y;
    float z;
    long timestamp;
    SensorType type;

    public MyEvent() {
    }

    public MyEvent(float x, float y, float z, long timestamp, SensorType type) {
        this.x = x;
        this.y = y;
        this.z = z;
        this.timestamp = timestamp;
        this.type = type;
    }

    @Override
    public String toString() {
        return "MyEvent{" +
                "x=" + x +
                ", y=" + y +
                ", z=" + z +
                ", timestamp=" + timestamp +
                ", type=" + type +
                '}';
    }

    public float getX() {
        return x;
    }

    public void setX(float x) {
        this.x = x;
    }

    public float getY() {
        return y;
    }

    public void setY(float y) {
        this.y = y;
    }

    public float getZ() {
        return z;
    }

    public void setZ(float z) {
        this.z = z;
    }

    public long getTimestamp() {
        return timestamp;
    }

    public void setTimestamp(long timestamp) {
        this.timestamp = timestamp;
    }

    public SensorType getType() {
        return type;
    }

    public void setType(SensorType type) {
        this.type = type;
    }
}
